package com.example.baracocktail.model;

import java.util.ArrayList;
import java.util.List;

public class Categorie {

	private String nom;
	private String description;
	private List<Cocktail> cocktails;   

	public Categorie() {
		cocktails = new ArrayList<Cocktail>();
	}
	
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public void addCocktail(Cocktail cocktail) {
		cocktails.add(cocktail);
	}
	
	public List<Cocktail> allCocktailFromCategorie() {
		return cocktails;
	}

	@Override
	public String toString() {
		return String.format("%s - %s", nom, description);
	}

}
